<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>快递列表</title>
    <link rel="stylesheet" type="text/css" href="/CMS/css/bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css" href="/CMS/css/express.css"/>
    <link rel="stylesheet" type="text/css" href="/IMS/css/DefaultSkin.css?v=20180712190507493"/>
    <link rel="stylesheet" type="text/css" href="/IMS/css/load.css?v=20180712190507493"/>
    <link rel="stylesheet" type="text/css" href="/IMS/css/control.css?v=20180712190507493"/>
    <link rel="stylesheet" type="text/css" href="/IMS/css/list.css?v=20180712190507493"/>
    <link rel="stylesheet" type="text/css" href="/IMS/css/anim.css?v=20180712190507493"/>
    <link rel="stylesheet" type="text/css" href="/IMS/css/page.css?v=1.0"/><!-- 这个里面有字体,加个版本号不进行更新 -->
    <link rel="stylesheet" type="text/css" href="/IMS/css/comm.css?v=20180712190507493"/>
    <link rel="stylesheet" type="text/css" href="/IMS/css/select2/select2.css?v=20180712190507493"/>
    <link rel="stylesheet" type="text/css" href="/IMS/css/zTreeStyle/zTreeStyle.css?v=20180712190507493"/>
    <link rel="stylesheet" type="text/css" href="/IMS/css/core.css?v=20180712190507493"/>
    <link rel="stylesheet" type="text/css" href="/IMS/js/plugins/file/uploadify/uploadify.css?v=20180712190507493"/>
    <link rel="stylesheet" type="text/css" href="/IMS/js/plugins/treeview/jquery.treeview.css?v=20180712190507493"/>
    <link rel="stylesheet" type="text/css" href="/IMS/css/multi-select.css?v=20180712190507493"/>
    <link rel="stylesheet" type="text/css" href="/IMS/js/plugins/bsgrid/bsgrid.all.min.css?v=20180712190507493"/>
    <link rel="stylesheet" type="text/css" href="/IMS/js/plugins/bsgrid/bsgrid.all.min.css?v=20180712190507493"/>
    <link rel="stylesheet" type="text/css" href="/IMS/css/jeasy-ui/easyui.css?v=20180712190507493"/>
    <link rel="stylesheet" type="text/css"
          href="/IMS/js/plugins/poshytip/tip-darkgray/tip-darkgray.css?v=20180712190507493"/>
    <link rel="stylesheet" type="text/css" href="/IMS/css/addinfo.css?v=20180712190507493"/>
    <link rel="stylesheet" type="text/css" href="/IMS/css/prettyPhoto.css?v=20180712190507493"/>
    <link rel="stylesheet" type="text/css" href="/IMS/css/jquery-ui-1.10.4.custom.min.css?v=20180712190507493"/>
    <link rel="stylesheet" type="text/css" href="/IMS/css/jquery.editable-select.min.css?v=20180712190507493"/>
    <script type="text/javascript" src="/IMS/js/jquery-1.11.2.min.js?v=20180712190507542"></script>
    <!-- 新增加 -->
    <script type="text/javascript" src="/IMS/js/plugins/comm/jquery-ajax.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/plugins/comm/securityProtect.js?v=20180712190507542"></script>
    <script type="text/javascript"
            src="/IMS/js/plugins/comm/jquery-ajax-response-handler.js?v=20180712190507542"></script>
    <!-- 新增加 END -->
    <script type="text/javascript" src="/IMS/js/common/public-obj.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/common/bind.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/common/controls.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/common/slide.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/common/switch.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/common/initial.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/common/print/printhtml.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/common/listBox.js?v=20180712190507542"></script>

    <script type="text/javascript" src="/IMS/js/plugins/My97DatePicker/WdatePicker.js?v=20180712190507542"></script>
    <script type="text/javascript"
            src="/IMS/js/plugins/file/uploadify/jquery.uploadify.min.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/plugins/layer/layer.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/plugins/select2/select2.full.min.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/plugins/select2/i18n/zh-CN.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/plugins/treeview/jquery.treeview.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/plugins/form/jquery.form.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/plugins/ztree/jquery.ztree.core-3.5.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/plugins/ztree/jquery.ztree.excheck-3.5.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/plugins/comm/constant.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/plugins/comm/common.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/plugins/comm/bmsAjax.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/plugins/comm/validata.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/plugins/validate/jquery.validate.js?v=20180712190507542"></script>
    <script type="text/javascript"
            src="/IMS/js/plugins/validate/localization/messages_zh.min.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/plugins/validate/regValidate.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/common/popup_layer.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/common/jqueryPlugins/jquery_magnifier.js?v=20180712190507542"></script>
    <script type="text/javascript"
            src="/IMS/js/common/jqueryPlugins/jquery.multi-select.js?v=20180712190507542"></script>
    <script type="text/javascript"
            src="/IMS/js/common/jqueryPlugins/jquery.quicksearch.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/jquery.easyui.min.js?v=20180712190507542"></script>
    <script type="text/javascript"
            src="/IMS/js/common/jqueryPlugins/jquery.prettyPhoto.js?v=20180712190507542"></script>

    <script type="text/javascript" src="/IMS/js/plugins/bsgrid/grid.zh-CN.min.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/plugins/bsgrid/bsgrid.all.min.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/plugins/bsgrid/grid.extend.min.js?v=20180712190507542"></script>
    <script type="text/javascript" charset="UTF-8"
            src="/IMS/js/plugins/poshytip/jquery.poshytip.js?v=20180712190507542"></script>

    <script type="text/javascript"
            src="/IMS/js/common/jqueryPlugins/jquery-ui-1.10.4.custom.min.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/common/joinUs/AddListBox.js?v=20180712190507542"></script>
    <script type="text/javascript"
            src="/IMS/js/common/jqueryPlugins/jquery.editable-select.min.js?v=20180712190507542"></script>

    <!-- echarts -->
    <script type="text/javascript" src="/IMS/js/plugins/echarts/dist/echarts.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/plugins/echarts/dist/chart/bar.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/plugins/echarts/dist/chart/line.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/plugins/echarts/dist/chart/pie.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/plugins/echarts/dist/chart/funnel.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/IMS/js/plugins/echarts/dist/chart/funnel.js?v=20180712190507542"></script>
    <script type="text/javascript" src="/CMS/js/express/index.js"></script>

</head>

<body>
<div>
    <div class="icip_title_box" style="margin-bottom: 20px;">
        <div class="left">
            <span class="icip_title_text" style="margin-left: 20px;">快递列表</span>
        </div>
        <div class="right">
			<span class="icip_button icip_button_c2">
				<a href="/CMS/express/addexpress.ht" style="color: white;">录入业主快递</a>
			</span>
			<span class="icip_button icip_button_c2">
				<a href="/CMS/express/addexpressall.ht" style="color: white;">录入员工快递</a>
			</span>
        </div>
    </div>
</div>

<form id="frm" name="frm" method="post" action="/CMS/express/express.ht">
    <div class="container express-box" style="width: 100%;">
        <div class="row">
            <ul class="col-xs-12 col-sm-12 col-md-12 col-lg-12 unsalable-text">
                <li class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                    <input class="search-ipt form-control fl" type="text" name="search" id="search" placeholder="请选择标题"/>
                    <input class="icip_button button-white" type="button" value="搜索" onclick="searchSubmit()" />
                </li>
            </ul>
            <table class="table table-hover express-table" style="width: 100%;margin-bottom: 0;">
                <tr>
                    <th width="5%"></th>
                    <th width="15%">标题</th>
                    <th width="25%">地址</th>
                    <th width="10%">录入时间</th>
                    <th width="5%">操作</th>
                </tr>
                <tr>
                    %if rs:
                    %for row in rs:
                    <td><input class="ck-ipt" type="checkbox" name="" id="" value=""/></td>
                    <td>${row.expresstype.encode('utf-8') if row.expresstype else ''}</td>
                    <td>${row.detailaddress.encode('utf-8') if row.detailaddress else ''}</td>
                    <td >${row.createtime}</td>

                    <!--onclick="showPubInfo(&#39;${row.id}&#39;)-->
                    <td><input class="delete-btn btn btn-default" onclick="deletes(${row.id})" type="button" name="" id="" value="删除" /></td>

                </tr>
                %endfor
                %else:
                <tr>
                    <td>暂无数据</td>
                </tr>

                %endif

            </table>

            <div class="all-ck">
                <label>
                    <input type="checkbox" name="" id="ckall" value="" style=" margin-left: -28px;"/>
                    <span style="display: block;
    margin-top: -28px;
    margin-left: 60px;">全选</span>
                </label>
                <button type="button" class="btn btn-default delete-all">删除</button>
            </div>

            <!--<ul class="pagination">
                <li>
                    <a href="#">&laquo;</a>
                </li>
                <li class="active">
                    <a href="#">1</a>
                </li>
                <li>
                    <a href="#">2</a>
                </li>
                <li>
                    <a href="#">3</a>
                </li>
                <li>
                    <a href="#">4</a>
                </li>
                <li>
                    <a href="#">5</a>
                </li>
                <li>
                    <a href="#">&raquo;</a>
                </li>
            </ul>-->

        </div>
    </div>

</form>
</body>



<script type="text/javascript">

    function deletes(id) {

        if (confirm("确定要删除吗？")) {
            window.event.returnValue = true;
        } else {
            window.event.returnValue = false;
        }

     //   alert(window.event.returnValue)

        if (window.event.returnValue == true) {
            $.ajax({
                type: "get",
                url: "/CMS/express/delexpress.ht",
                data: {strId: id},
                dataType: 'text',
                success:function (data) {

                   var datas = JSON.parse(data);
                    if(datas['rspcode'] === 0)
                    {
                        alert("删除成功!");
                        location.reload();
                    }
                }
            });
        }else
        {
              alert("删除失败!");
        }


    }


    function searchSubmit() {
	$.submit($('#frm'), {
		dataType : 'html',
		beforeSend : function() {
			showProccessBar()
		},
		error : function() {
			hideProccessBar();
		},
		success : function(data, textStatus) {
			var url = $('#frm').attr('action');
			replaceDocument(url, data);
		}
	});
}

	</script>


</html>